3.12.53 \(\int \frac {a+b \arctan (c x)}{x (d+e x^2)} \, dx\) [1153]

3.12.53.1 Optimal result
3.12.53.2 Mathematica [A] (verified)
3.12.53.3 Rubi [A] (verified)
3.12.53.4 Maple [A] (verified)
3.12.53.5 Fricas [F]
3.12.53.6 Sympy [F]
3.12.53.7 Maxima [F]
3.12.53.8 Giac [F]
3.12.53.9 Mupad [F(-1)]

3.12.53.1 Optimal result

Integrand size = 21, antiderivative size = 353 \[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\frac {a \log (x)}{d}+\frac {(a+b \arctan (c x)) \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 d}-\frac {(a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 d}+\frac {i b \operatorname {PolyLog}(2,-i c x)}{2 d}-\frac {i b \operatorname {PolyLog}(2,i c x)}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d} \]

output
a*ln(x)/d+(a+b*arctan(c*x))*ln(2/(1-I*c*x))/d-1/2*(a+b*arctan(c*x))*ln(2*c 
*((-d)^(1/2)-x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)-I*e^(1/2)))/d-1/2*(a+b*arc 
tan(c*x))*ln(2*c*((-d)^(1/2)+x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)+I*e^(1/2)) 
)/d+1/2*I*b*polylog(2,-I*c*x)/d-1/2*I*b*polylog(2,I*c*x)/d-1/2*I*b*polylog 
(2,1-2/(1-I*c*x))/d+1/4*I*b*polylog(2,1-2*c*((-d)^(1/2)-x*e^(1/2))/(1-I*c* 
x)/(c*(-d)^(1/2)-I*e^(1/2)))/d+1/4*I*b*polylog(2,1-2*c*((-d)^(1/2)+x*e^(1/ 
2))/(1-I*c*x)/(c*(-d)^(1/2)+I*e^(1/2)))/d
 
3.12.53.2 Mathematica [A] (verified)

Time = 0.15 (sec) , antiderivative size = 484, normalized size of antiderivative = 1.37 \[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\frac {a \log (x)}{d}+\frac {i b \log (1+i c x) \log \left (\frac {c \left (\sqrt {-d}-\sqrt {e} x\right )}{c \sqrt {-d}-i \sqrt {e}}\right )}{4 d}-\frac {i b \log (1-i c x) \log \left (\frac {c \left (\sqrt {-d}-\sqrt {e} x\right )}{c \sqrt {-d}+i \sqrt {e}}\right )}{4 d}-\frac {i b \log (1-i c x) \log \left (\frac {c \left (\sqrt {-d}+\sqrt {e} x\right )}{c \sqrt {-d}-i \sqrt {e}}\right )}{4 d}+\frac {i b \log (1+i c x) \log \left (\frac {c \left (\sqrt {-d}+\sqrt {e} x\right )}{c \sqrt {-d}+i \sqrt {e}}\right )}{4 d}-\frac {a \log \left (d+e x^2\right )}{2 d}+\frac {i b \operatorname {PolyLog}(2,-i c x)}{2 d}-\frac {i b \operatorname {PolyLog}(2,i c x)}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} (1-i c x)}{i c \sqrt {-d}-\sqrt {e}}\right )}{4 d}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} (1-i c x)}{i c \sqrt {-d}+\sqrt {e}}\right )}{4 d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} (1+i c x)}{i c \sqrt {-d}-\sqrt {e}}\right )}{4 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} (1+i c x)}{i c \sqrt {-d}+\sqrt {e}}\right )}{4 d} \]

input
Integrate[(a + b*ArcTan[c*x])/(x*(d + e*x^2)),x]
 
output
(a*Log[x])/d + ((I/4)*b*Log[1 + I*c*x]*Log[(c*(Sqrt[-d] - Sqrt[e]*x))/(c*S 
qrt[-d] - I*Sqrt[e])])/d - ((I/4)*b*Log[1 - I*c*x]*Log[(c*(Sqrt[-d] - Sqrt 
[e]*x))/(c*Sqrt[-d] + I*Sqrt[e])])/d - ((I/4)*b*Log[1 - I*c*x]*Log[(c*(Sqr 
t[-d] + Sqrt[e]*x))/(c*Sqrt[-d] - I*Sqrt[e])])/d + ((I/4)*b*Log[1 + I*c*x] 
*Log[(c*(Sqrt[-d] + Sqrt[e]*x))/(c*Sqrt[-d] + I*Sqrt[e])])/d - (a*Log[d + 
e*x^2])/(2*d) + ((I/2)*b*PolyLog[2, (-I)*c*x])/d - ((I/2)*b*PolyLog[2, I*c 
*x])/d - ((I/4)*b*PolyLog[2, -((Sqrt[e]*(1 - I*c*x))/(I*c*Sqrt[-d] - Sqrt[ 
e]))])/d - ((I/4)*b*PolyLog[2, (Sqrt[e]*(1 - I*c*x))/(I*c*Sqrt[-d] + Sqrt[ 
e])])/d + ((I/4)*b*PolyLog[2, -((Sqrt[e]*(1 + I*c*x))/(I*c*Sqrt[-d] - Sqrt 
[e]))])/d + ((I/4)*b*PolyLog[2, (Sqrt[e]*(1 + I*c*x))/(I*c*Sqrt[-d] + Sqrt 
[e])])/d
 
3.12.53.3 Rubi [A] (verified)

Time = 0.60 (sec) , antiderivative size = 353, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {5463, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx\)

\(\Big \downarrow \) 5463

\(\displaystyle \int \left (\frac {a+b \arctan (c x)}{d x}-\frac {e x (a+b \arctan (c x))}{d \left (d+e x^2\right )}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {(a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 d}-\frac {(a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 d}+\frac {\log \left (\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{d}+\frac {a \log (x)}{d}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d}+\frac {i b \operatorname {PolyLog}(2,-i c x)}{2 d}-\frac {i b \operatorname {PolyLog}(2,i c x)}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{2 d}\)

input
Int[(a + b*ArcTan[c*x])/(x*(d + e*x^2)),x]
 
output
(a*Log[x])/d + ((a + b*ArcTan[c*x])*Log[2/(1 - I*c*x)])/d - ((a + b*ArcTan 
[c*x])*Log[(2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - I*Sqrt[e])*(1 - I*c 
*x))])/(2*d) - ((a + b*ArcTan[c*x])*Log[(2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*S 
qrt[-d] + I*Sqrt[e])*(1 - I*c*x))])/(2*d) + ((I/2)*b*PolyLog[2, (-I)*c*x]) 
/d - ((I/2)*b*PolyLog[2, I*c*x])/d - ((I/2)*b*PolyLog[2, 1 - 2/(1 - I*c*x) 
])/d + ((I/4)*b*PolyLog[2, 1 - (2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - 
 I*Sqrt[e])*(1 - I*c*x))])/d + ((I/4)*b*PolyLog[2, 1 - (2*c*(Sqrt[-d] + Sq 
rt[e]*x))/((c*Sqrt[-d] + I*Sqrt[e])*(1 - I*c*x))])/d
 

3.12.53.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 5463
Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))*(x_)^(m_.))/((d_) + (e_.)*(x_)^2), 
x_Symbol] :> Int[ExpandIntegrand[a + b*ArcTan[c*x], x^m/(d + e*x^2), x], x] 
 /; FreeQ[{a, b, c, d, e}, x] && IntegerQ[m] &&  !(EqQ[m, 1] && NeQ[a, 0])
 
3.12.53.4 Maple [A] (verified)

Time = 0.30 (sec) , antiderivative size = 435, normalized size of antiderivative = 1.23

method result size
risch \(-\frac {i b \operatorname {dilog}\left (-i c x +1\right )}{2 d}-\frac {i b \ln \left (-i c x +1\right ) \ln \left (\frac {c \sqrt {e d}-\left (-i c x +1\right ) e +e}{c \sqrt {e d}+e}\right )}{4 d}-\frac {i b \ln \left (-i c x +1\right ) \ln \left (\frac {c \sqrt {e d}+\left (-i c x +1\right ) e -e}{c \sqrt {e d}-e}\right )}{4 d}-\frac {i b \operatorname {dilog}\left (\frac {c \sqrt {e d}-\left (-i c x +1\right ) e +e}{c \sqrt {e d}+e}\right )}{4 d}-\frac {i b \operatorname {dilog}\left (\frac {c \sqrt {e d}+\left (-i c x +1\right ) e -e}{c \sqrt {e d}-e}\right )}{4 d}+\frac {a \ln \left (-i c x \right )}{d}-\frac {a \ln \left (\left (-i c x +1\right )^{2} e -c^{2} d -2 \left (-i c x +1\right ) e +e \right )}{2 d}+\frac {i b \operatorname {dilog}\left (i c x +1\right )}{2 d}+\frac {i b \ln \left (i c x +1\right ) \ln \left (\frac {c \sqrt {e d}-\left (i c x +1\right ) e +e}{c \sqrt {e d}+e}\right )}{4 d}+\frac {i b \ln \left (i c x +1\right ) \ln \left (\frac {c \sqrt {e d}+\left (i c x +1\right ) e -e}{c \sqrt {e d}-e}\right )}{4 d}+\frac {i b \operatorname {dilog}\left (\frac {c \sqrt {e d}-\left (i c x +1\right ) e +e}{c \sqrt {e d}+e}\right )}{4 d}+\frac {i b \operatorname {dilog}\left (\frac {c \sqrt {e d}+\left (i c x +1\right ) e -e}{c \sqrt {e d}-e}\right )}{4 d}\) \(435\)
derivativedivides \(-\frac {a \ln \left (e \,c^{2} x^{2}+c^{2} d \right )}{2 d}+\frac {a \ln \left (c x \right )}{d}+b \,c^{2} \left (-\frac {\arctan \left (c x \right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )}{2 d \,c^{2}}+\frac {\arctan \left (c x \right ) \ln \left (c x \right )}{d \,c^{2}}-\frac {-\frac {i \ln \left (c x \right ) \ln \left (i c x +1\right )}{2}+\frac {i \ln \left (c x \right ) \ln \left (-i c x +1\right )}{2}-\frac {i \operatorname {dilog}\left (i c x +1\right )}{2}+\frac {i \operatorname {dilog}\left (-i c x +1\right )}{2}}{d \,c^{2}}+\frac {-\frac {i \left (\ln \left (c x -i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x -i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}+\frac {i \left (\ln \left (c x +i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x +i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}}{2 d \,c^{2}}\right )\) \(706\)
default \(-\frac {a \ln \left (e \,c^{2} x^{2}+c^{2} d \right )}{2 d}+\frac {a \ln \left (c x \right )}{d}+b \,c^{2} \left (-\frac {\arctan \left (c x \right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )}{2 d \,c^{2}}+\frac {\arctan \left (c x \right ) \ln \left (c x \right )}{d \,c^{2}}-\frac {-\frac {i \ln \left (c x \right ) \ln \left (i c x +1\right )}{2}+\frac {i \ln \left (c x \right ) \ln \left (-i c x +1\right )}{2}-\frac {i \operatorname {dilog}\left (i c x +1\right )}{2}+\frac {i \operatorname {dilog}\left (-i c x +1\right )}{2}}{d \,c^{2}}+\frac {-\frac {i \left (\ln \left (c x -i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x -i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}+\frac {i \left (\ln \left (c x +i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x +i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}}{2 d \,c^{2}}\right )\) \(706\)
parts \(\frac {a \ln \left (x \right )}{d}-\frac {a \ln \left (e \,x^{2}+d \right )}{2 d}+b \left (\frac {\arctan \left (c x \right ) \ln \left (c x \right )}{d}-\frac {\arctan \left (c x \right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )}{2 d}-\frac {c^{2} \left (-\frac {i \ln \left (c x \right ) \ln \left (i c x +1\right )}{c^{2} d}+\frac {i \ln \left (c x \right ) \ln \left (-i c x +1\right )}{c^{2} d}-\frac {i \operatorname {dilog}\left (i c x +1\right )}{c^{2} d}+\frac {i \operatorname {dilog}\left (-i c x +1\right )}{c^{2} d}-\frac {-\frac {i \left (\ln \left (c x -i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x -i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x +i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}+2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}+\frac {i \left (\ln \left (c x +i\right ) \ln \left (e \,c^{2} x^{2}+c^{2} d \right )-2 e \left (\frac {\ln \left (c x +i\right ) \left (\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\ln \left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )\right )}{2 e}+\frac {\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =1\right )}\right )+\operatorname {dilog}\left (\frac {\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )-c x -i}{\operatorname {RootOf}\left (e \,\textit {\_Z}^{2}-2 i e \textit {\_Z} +c^{2} d -e , \operatorname {index} =2\right )}\right )}{2 e}\right )\right )}{2}}{d \,c^{2}}\right )}{2}\right )\) \(709\)

input
int((a+b*arctan(c*x))/x/(e*x^2+d),x,method=_RETURNVERBOSE)
 
output
-1/2*I*b/d*dilog(1-I*c*x)-1/4*I*b/d*ln(1-I*c*x)*ln((c*(e*d)^(1/2)-(1-I*c*x 
)*e+e)/(c*(e*d)^(1/2)+e))-1/4*I*b/d*ln(1-I*c*x)*ln((c*(e*d)^(1/2)+(1-I*c*x 
)*e-e)/(c*(e*d)^(1/2)-e))-1/4*I*b/d*dilog((c*(e*d)^(1/2)-(1-I*c*x)*e+e)/(c 
*(e*d)^(1/2)+e))-1/4*I*b/d*dilog((c*(e*d)^(1/2)+(1-I*c*x)*e-e)/(c*(e*d)^(1 
/2)-e))+a/d*ln(-I*c*x)-1/2*a/d*ln((1-I*c*x)^2*e-c^2*d-2*(1-I*c*x)*e+e)+1/2 
*I*b/d*dilog(1+I*c*x)+1/4*I*b/d*ln(1+I*c*x)*ln((c*(e*d)^(1/2)-(1+I*c*x)*e+ 
e)/(c*(e*d)^(1/2)+e))+1/4*I*b/d*ln(1+I*c*x)*ln((c*(e*d)^(1/2)+(1+I*c*x)*e- 
e)/(c*(e*d)^(1/2)-e))+1/4*I*b/d*dilog((c*(e*d)^(1/2)-(1+I*c*x)*e+e)/(c*(e* 
d)^(1/2)+e))+1/4*I*b/d*dilog((c*(e*d)^(1/2)+(1+I*c*x)*e-e)/(c*(e*d)^(1/2)- 
e))
 
3.12.53.5 Fricas [F]

\[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]

input
integrate((a+b*arctan(c*x))/x/(e*x^2+d),x, algorithm="fricas")
 
output
integral((b*arctan(c*x) + a)/(e*x^3 + d*x), x)
 
3.12.53.6 Sympy [F]

\[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\int \frac {a + b \operatorname {atan}{\left (c x \right )}}{x \left (d + e x^{2}\right )}\, dx \]

input
integrate((a+b*atan(c*x))/x/(e*x**2+d),x)
 
output
Integral((a + b*atan(c*x))/(x*(d + e*x**2)), x)
 
3.12.53.7 Maxima [F]

\[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]

input
integrate((a+b*arctan(c*x))/x/(e*x^2+d),x, algorithm="maxima")
 
output
-1/2*a*(log(e*x^2 + d)/d - 2*log(x)/d) + 2*b*integrate(1/2*arctan(c*x)/(e* 
x^3 + d*x), x)
 
3.12.53.8 Giac [F]

\[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]

input
integrate((a+b*arctan(c*x))/x/(e*x^2+d),x, algorithm="giac")
 
output
sage0*x
 
3.12.53.9 Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \arctan (c x)}{x \left (d+e x^2\right )} \, dx=\int \frac {a+b\,\mathrm {atan}\left (c\,x\right )}{x\,\left (e\,x^2+d\right )} \,d x \]

input
int((a + b*atan(c*x))/(x*(d + e*x^2)),x)
 
output
int((a + b*atan(c*x))/(x*(d + e*x^2)), x)